#include "comm.hpp"
#include <unistd.h>
int main()
{
    //1.1创建shm 关联shm 
    Init init(SERVER);
    //1.2获得shm虚拟内存的起始地址
    char* start=init.getStart();

    //2。通信
    int n=0;
    while(n<=30)
    {
        cout<<"client->server:"<<start<<endl;
        sleep(1);
        n++;
    }

    //进程结束自动销毁init ~init() 去关联 删除shm'
    return 0;

}